package org.db2.project.airline.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import java.io.Serializable;


/**
 * The persistent class for the CREWROLE database table.
 */
@Entity
public class CrewRole implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(name = "CREWROLE_ID_GENERATOR", sequenceName = "CREWROLE_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CREWROLE_ID_GENERATOR")
    private long id;

    private String role;

    public CrewRole() {
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getRole() {
        return this.role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}